package com.carsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.carsystem.entity.OpenRendVo;
import com.carsystem.entity.Openrend;
import com.carsystem.request.OpenRendRequestVo;
import com.carsystem.request.OrderRequestVo;
import com.carsystem.response.OpenRendResponseVo;
import com.carsystem.utils.PageHandler;
import com.carsystem.utils.PageResult;
import com.carsystem.utils.QueryPageBean;
import com.carsystem.utils.Result;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ykl
 * @since 2021-12-04
 */
public interface IOpenrendService extends IService<Openrend> {

    PageHandler selectOpenRendByPage(OpenRendRequestVo openRendRequestVo);
    Result addOpenrend(Openrend openrend,int[] carbrandIds,int[] carIds,int[] shopIds);
    OpenRendVo getOpenRendById(int id);
    Result updateOpenrend(Openrend openrend,int[] carbrandIds,int[] carIds,int[] shopIds);
    Result deleteOpenrend(int id);

    /**
     * 根据id查找车辆详情信息
     * @param id
     * @return
     */
    OpenRendResponseVo selectOpenRentdById(Integer id);
}
